package com.ddwl.gate.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author hemiaojun
 * @Date 2020/10/13 17:34
 */
@FeignClient(url = "${JD.url}",name="JD",configuration = GateFeignConfig.class)
public interface JDClient {

    /**
     * 调用京东查询手机号运营商接口
     * @param mobile
     * @return
     */
    @GetMapping(value = "${JD.uri.searchPhone}",produces = MediaType.APPLICATION_JSON_VALUE)
    String searchPhone(@RequestParam String mobile);

}
